﻿<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Details' ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="tennhom">
					<?php echo JText::_( 'Tên nhóm' );?>
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="tennhom" id="tennhom" size="32" maxlength="250" value="<?php echo $this->nhom->tennhom;?>" />
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="manganh">
					<?php echo JText::_( 'Mã ngành' );?>
				</label>
			</td>
			<td>
				<?php
					echo $this->lists['type'];		
					?>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="khoa">
					<?php echo JText::_( 'Phân ngành' );?>
				</label>
			</td>
			<td>
				<select name="tenphannganh" id="tenphannganh">
					<?php
					foreach( $this->phannganh as $obj )
					{ 					
							if($obj->tenphannganh==$this->nhom->tenphannganh)
								echo "<option value='".$obj->tenphannganh."' selected='selected'>".$obj->tenphannganh."</option>";
							else
								echo "<option value='".$obj->tenphannganh."' >".$obj->tenphannganh."</option>";
								echo $obj->tenphannganh;
					}		
					?>
				</select>
			</td>
		</tr>
	</table>
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_nhom" />
<input type="hidden" name="manhom" value="<?php echo $this->nhom->manhom; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="text" value="<?php echo $this->text; ?>" />
<input type="hidden" name="controller" value="nhom" />
<input type="hidden" name="view" value="manage" />
</form>
